package com.qf.hospital.DTO;

import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * @author 何星宇
 * @version V1.0
 * @Date 2021/10/18 22:07
 */
public class AddRoleDTO {
    private Integer roleId;

    @NotBlank(message = "角色名称为必填项")
    private String roleName;

    @NotBlank(message = "角色备注为必填项")
    private String roleDesc;

    @NotNull(message = "是否可用为必填项")
    private Integer available;

    @Override
    public String toString() {
        return "SysRoleDTO{" +
                "roleId=" + roleId +
                ", roleName='" + roleName + '\'' +
                ", roleDesc='" + roleDesc + '\'' +
                ", available=" + available +
                '}';
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }
    public void setRoleid(Integer roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }
    public void setRolename(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleDesc() {
        return roleDesc;
    }

    public void setRoleDesc(String roleDesc) {
        this.roleDesc = roleDesc;
    }
    public void setRoledesc(String roleDesc) {
        this.roleDesc = roleDesc;
    }

    public Integer getAvailable() {
        return available;
    }

    public void setAvailable(Integer available) {
        this.available = available;
    }
}
